package kinds
{
	import flash.utils.Dictionary;

	public class MultinameKind
	{
		public static const CONSTANT_QName:uint 					= 0x07; 
		public static const CONSTANT_QNameA:uint 					= 0x0D;  
		public static const CONSTANT_RTQName:uint 				= 0x0F;  
		public static const CONSTANT_RTQNameA:uint 				= 0x10;  
		public static const CONSTANT_RTQNameL:uint 				= 0x11; 
		public static const CONSTANT_RTQNameLA:uint 			= 0x12; 
		public static const CONSTANT_Multiname:uint 				= 0x09; 
		public static const CONSTANT_MultinameA:uint 			= 0x0E; 
		public static const CONSTANT_MultinameL:uint 				= 0x1B; 
		public static const CONSTANT_MultinameLA:uint 			= 0x1C; 
		
		public static const DESC_QName:String 							= "QName"; 
		public static const DESC_QNameA:String 						= "QNameA";  
		public static const DESC_RTQName:String 						= "RTQName";  
		public static const DESC_RTQNameA:String 					= "RTQNameA";  
		public static const DESC_RTQNameL:String 					= "RTQNameL"; 
		public static const DESC_RTQNameLA:String 					= "RTQNameLA"; 
		public static const DESC_Multiname:String 						= "Multiname"; 
		public static const DESC_MultinameA:String 					= "MultinameA"; 
		public static const DESC_MultinameL:String 					= "MultinameL"; 
		public static const DESC_MultinameLA:String 					= "MultinameLA"; 
		
		public static var _dic:Dictionary = null;
		
		public static function get dic():Dictionary
		{
			if(_dic == null){
				_dic = new Dictionary();
				_dic[CONSTANT_QName] 						= DESC_QName;
				_dic[CONSTANT_QNameA]  					= DESC_QNameA;  
				_dic[CONSTANT_RTQName]  				= DESC_RTQName;  
				_dic[CONSTANT_RTQNameA]  				= DESC_RTQNameA;  
				_dic[CONSTANT_RTQNameL]  				= DESC_RTQNameL; 
				_dic[CONSTANT_RTQNameLA]  			= DESC_RTQNameLA; 
				_dic[CONSTANT_Multiname]  				= DESC_Multiname; 
				_dic[CONSTANT_MultinameA]  				= DESC_MultinameA; 
				_dic[CONSTANT_MultinameL]  				= DESC_MultinameL; 
				_dic[CONSTANT_MultinameLA]  			= DESC_MultinameLA; 
			}
			return _dic;
		}
		
		public static function desc(kind:uint):String
		{
			return dic[kind];
		}
	}
}